﻿<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <title>赋值表达式</title>
</head>
<body>
    <script language="javascript">
        let x = 10;
        document.write("<p>目前变量x的值为：x=" + x);
        x += x -= x * x;
        document.write("<p>执行语句“x+=x-=x*x”后，变量x的值为：x=" + x);
        let y = 25;
        document.write("<p>目前变量y的值为：y=" + y);
        y += (y -= y * y);
        document.write("<p>执行语句“y+=(y-=y*y)”后，变量y的值为：y=" + y);

    </script>
</body>
</html>
